Skip to content

chore: openfeature cloudflare provider scaffold - #1870

Open
joker23 wants to merge 1 commit into
mainfrom
skz/SDK-2947/openfeature-cloudflare-provider-scaffold
Open

chore: openfeature cloudflare provider scaffold#1870
joker23 wants to merge 1 commit into
mainfrom
skz/SDK-2947/openfeature-cloudflare-provider-scaffold

Conversation

@joker23

@joker23 joker23 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.


Note

Overview
Adds @launchdarkly/openfeature-cloudflare-server (v0.1.0, pre-release), an OpenFeature provider that wraps the LaunchDarkly Cloudflare SDK for multi-user Workers.

LaunchDarklyProvider extends BaseOpenFeatureProvider, initializing the KV-backed Cloudflare client with a client-side ID and KV namespace. Unlike the Node provider, it does not emit ConfigurationChanged because the edge store has no update notifications.

Docs cover isolate-lifetime init (avoid racing setProviderAndWait per request), nodejs_compat, and OpenFeature context encoding. Tests cover init, typed evaluations, error mapping, and tracking. The package is wired into the monorepo workspaces and TypeScript project references.

Reviewed by Cursor Bugbot for commit ac41753. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 26360 bytes
Compressed size limit: 29000
Uncompressed size: 129188 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 41502 bytes
Compressed size limit: 44000
Uncompressed size: 224541 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 32444 bytes
Compressed size limit: 34000
Uncompressed size: 116232 bytes

@github-actions

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179887 bytes
Compressed size limit: 200000
Uncompressed size: 833430 bytes

@joker23 joker23 changed the title skz/SDK 2947/openfeature cloudflare provider scaffold chore: openfeature cloudflare provider scaffold Aug 20, 2026
@joker23
joker23 marked this pull request as ready for review August 20, 2026 23:01
@joker23
joker23 requested a review from a team as a code owner August 20, 2026 23:01

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ac41753. Configure here.

},
"devDependencies": {
"@eslint/js": "^9.0.0",
"@launchdarkly/cloudflare-server-sdk": "2.7.29",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Cloudflare SDK pin

Medium Severity

The devDependencies pin for @launchdarkly/cloudflare-server-sdk is 2.7.29, but the workspace package is 2.7.31 (and the Cloudflare example pins that matching version). With Yarn workspaces, an exact mismatch means this package resolves from the registry instead of the local monorepo package, so local Cloudflare SDK changes and types are not what tests and builds use.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ac41753. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant